package com.gpay.erp.services.purchase;

import com.gpay.erp.core.Services;
import com.gpay.erp.services.purchase.bean.Application;
import com.gpay.erp.services.purchase.bean.ApplicationSub;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * Created by Administrator on 2015/10/22 0022.
 */
@Service
public interface ApplicationSubService extends Services<ApplicationSub> {
    /**
     * 获取申请之项总数
     *
     * @param applicationSub
     * @return
     */
    public int getCount(ApplicationSub applicationSub);

    /**
     * 修改申请子项状态
     * @param applicationSub 采购申请外键id
     * @return
     */
    public int updateApplicationSubById(ApplicationSub applicationSub);

    /**
     * 修改申请子项状态
     * @param applicationSub
     * @return
     */
    public int updateApplicationSubByFId(ApplicationSub applicationSub);

    /**
     * 获取采购申请子项列表
     * @param fid
     * @return
     */
    public List<ApplicationSub> selectListByfid(String fid) ;

    /**
     * 获取合同子项号码
     * @return
     */
    public String getApplicationSubNumber(String applicationNumber);

    /**
     * 查询资金之和
     *
     * @param applicationSub
     * @return
     */
    public HashMap selectTotalByOne(ApplicationSub applicationSub);
}
